package com.guanglan.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.guanglan.dao.SysUserRoleMapper;
import com.guanglan.domain.SysUserRole;
import com.guanglan.service.SysUserRoleService;

@Service
public class SysUserRoleServiceImpl implements SysUserRoleService {
	
	@Autowired
	private SysUserRoleMapper userRoleMapper;

	public int deleteByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insert(SysUserRole record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insertSelective(SysUserRole record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public SysUserRole selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return null;
	}

	public int updateByPrimaryKeySelective(SysUserRole record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKey(SysUserRole record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public List<Long> selectByUserId(long userId) {
		// TODO Auto-generated method stub
		return userRoleMapper.selectByUserId(userId);
	}

	@Override
	public int deleteByUserId(long userId) {
		// TODO Auto-generated method stub
		return userRoleMapper.deleteByUserId(userId);
	}

}
